using System.Collections.Generic;

namespace MySpreadsheet
{
    public class Row
    {
        public double Height { get; set; }
        private List<Cell> cells = new List<Cell>();

        public IList<Cell> Cells
        {
            get { return cells; }
        }

        public Cell AddCell(object value)
        {
            return AddCell(new Cell(value));
        }

        public Cell AddCell()
        {
            return AddCell(new Cell());
        }

        public Cell AddCell(Cell cell)
        {
            cells.Add(cell);
            return cell;
        }
    }
}